package org.example;

import java.io.*;
import java.util.StringTokenizer;

//快读 和 快写
//适用于需要读入大量数据
//如 读入的数据量在 10^5就需要使用
public class QuickReadAndWrite {
    //为了方便输出数据，采用对于BufferedWriter再进行封装，包装一个PrintWriter
    //private static BufferedWriter out = new BufferedWriter(new OutputStreamWriter(System.out));

    public static PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
    private static Read in = new Read();

    public static void main(String[] args) throws IOException {
        //读取数据
        int n = in.nextInt();
        for(int i = 0; i < n; i++){
            String tmp = in.next();
            out.println(tmp);
        }
        //由于数据在缓存区中，还需要将数据flush一下，显示在终端上~
        out.flush();//out.close 也可以，底层会调用flush
    }

}

//读入类
class Read{
    //字符串分割类,在读入的时候会遇到'\r' '\n' 需要通过这个类处理
    private StringTokenizer st = new StringTokenizer("");
    //缓冲读入数据
    private BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    public String next() throws IOException {
        //处理多行读入，需要使用循环
        while(!st.hasMoreTokens()){
            st = new StringTokenizer(br.readLine());
        }
        return st.nextToken();
    }

    public String nextLine() throws IOException {
        return br.readLine();
    }

    public int nextInt() throws IOException {
        return Integer.parseInt(next());
    }

    long nextLong() throws IOException
    {
        return Long.parseLong(next());
    }

    double nextDouble() throws IOException
    {
        return Double.parseDouble(next());
    }
}
